/**
 * 
 */
package com.yst.suivi.data.team;

/**
 * @author yannick
 * 
 */
public class TeamRoleDto
{
	private String id;

	private String nom;

	private String profilId;

	private String profilNom;

	/**
	 * @return the nom
	 */
	public String getNom()
	{
		return nom;
	}

	/**
	 * @param nom
	 *            the nom to set
	 */
	public void setNom(String nom)
	{
		this.nom = nom;
	}

	/**
	 * @return the profilId
	 */
	public String getProfilId()
	{
		return profilId;
	}

	/**
	 * @param profilId
	 *            the profilId to set
	 */
	public void setProfilId(String profilId)
	{
		this.profilId = profilId;
	}

	/**
	 * @return the profilNom
	 */
	public String getProfilNom()
	{
		return profilNom;
	}

	/**
	 * @param profilNom
	 *            the profilNom to set
	 */
	public void setProfilNom(String profilNom)
	{
		this.profilNom = profilNom;
	}

	/**
	 * @return the id
	 */
	public String getId()
	{
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(String id)
	{
		this.id = id;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	public boolean equals(Object obj)
	{
		boolean egal = false;
		if (obj instanceof TeamRoleDto)
		{
			if (null != getId())
			{
				egal = getId().equals(((TeamRoleDto) obj).getId());
			}
			else
			{
				egal = getNom().equals(((TeamRoleDto) obj).getNom());
			}
		}
		return egal;
	}
}
